package com.example.hello;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.*;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class HelloActivity extends Activity {
	/** Called when the activity is first created. */
	Button myButton;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		myButton = (Button)findViewById(R.id.button1);
		myButton.setOnClickListener(new OnClickListener(){
			public void onClick(View v){
				Intent i = new Intent(getApplicationContext(), secondActivity.class);
				startActivity(i);
				//Toast.makeText(getApplicationContext(), "You Clicked me!", Toast.LENGTH_LONG).show();
			}
		});
		
	

		/*
        TextView tv = new TextView(this);
        tv.setText("Hello Android");
        setContentView(tv);
		 */
	}
}